﻿Public Class HoaDon
    Dim _id, _tiecCuoi, _soLuongBan As Integer
    Dim _ngayThanhToan As DateTime
    Dim _tongTienDichVu, _donGiaBan, _tongTienHoaDon As Double

    Public Property Id() As Integer
        Get
            Return _id
        End Get
        Set(ByVal value As Integer)
            _id = value
        End Set
    End Property

    Public Property Tiệc_Cưới() As Integer
        Get
            Return _tiecCuoi
        End Get
        Set(ByVal value As Integer)
            _tiecCuoi = value
        End Set
    End Property
    Public Property Ngày_Thanh_Toán() As DateTime
        Get
            Return _ngayThanhToan
        End Get
        Set(ByVal value As DateTime)
            _ngayThanhToan = value
        End Set
    End Property
    Public Property Số_Lượng_Bàn() As Integer
        Get
            Return _soLuongBan
        End Get
        Set(ByVal value As Integer)
            _soLuongBan = value
        End Set
    End Property
    Public Property Tổng_Tiền_Dịch_Vụ() As Double
        Get
            Return _tongTienDichVu
        End Get
        Set(ByVal value As Double)
            _tongTienDichVu = value
        End Set
    End Property
    Public Property Đơn_Giá_Bàn() As Double
        Get
            Return _donGiaBan
        End Get
        Set(ByVal value As Double)
            _donGiaBan = value
        End Set
    End Property
    Public Property Tổng_Tiền_Hóa_Đơn() As Double
        Get
            Return _tongTienHoaDon
        End Get
        Set(ByVal value As Double)
            _tongTienHoaDon = value
        End Set
    End Property

    Public Sub New(ByVal id As Integer, ByVal tiecCuoi As Integer, ByVal ngayThanhToan As DateTime, ByVal soLuongBan As Integer, ByVal tongTienDichVu As Double, ByVal donGiaBan As Double, ByVal tongTienHoaDon As Double)
        _id = id
        _tiecCuoi = tiecCuoi
        _ngayThanhToan = ngayThanhToan
        _soLuongBan = soLuongBan
        _tongTienDichVu = tongTienDichVu
        _donGiaBan = donGiaBan
        _tongTienHoaDon = tongTienHoaDon
    End Sub
End Class
